package com.twu.biblioteca;

/**
 * Created by admin on 14-6-21.
 */
public class Movie {
    private final String name;
    private final String year;
    private final String director;
    private final int rating;

    public Movie(String name, String year, String director, int rating) {

        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public String getYear() {
        return year;
    }

    public String getDirector() {
        return director;
    }

    public int getRating() {
        return rating;
    }

    public String getName() {

        return name;
    }
    public String getDetails(){
        return name + " " + year + " " + director + " " + rating + "\n";
    }
}
